
<%@ page import="sedh.project.AlocadorMunSer"%>
<html>
<head>
<script type="text/javascript">
 function editLinha(id) {
	 document.location.href = "/SEDH-PROJECT/alocadorMunSer/edit/"+id;
	 }
    </script>
<g:render template="/header" />
</head>
<body>
	<g:render template="/informationBar" />

	<g:render template="/menu" />


	<div class="body">
		<h1>Alocações de Municipios e Serviços</h1>
		<g:if test="${flash.message}">
			<div class="message">
				${flash.message}
			</div>
		</g:if>
		<div class="list">
			<table>
				<thead>
					<tr>

						<!-- <g:sortableColumn property="id" title="${message(code: 'alocadorMunSer.id.label', default: 'Id')}" /> -->

						<th><g:message code="alocadorMunSer.municipio.label"
								default="Municipio" /></th>

						<th><g:message code="alocadorMunSer.servico.label"
								default="Servico" /></th>

						<g:sortableColumn property="familias"
							title="${message(code: 'alocadorMunSer.familias.label', default: 'Familias')}" />

						<g:sortableColumn property="responsavel"
							title="${message(code: 'alocadorMunSer.responsavel.label', default: 'Responsavel')}" />

						<g:sortableColumn property="telefone"
							title="${message(code: 'alocadorMunSer.telefone.label', default: 'Telefone')}" />

					</tr>
				</thead>
				<tbody>
					<g:each in="${alocadorMunSerInstanceList}" status="i"
						var="alocadorMunSerInstance">
						<tr class="${(i % 2) == 0 ? 'odd' : 'even'}"
							ondblclick="editLinha('${alocadorMunSerInstance.id}')">

							<!-- <td><g:link action="show" id="${alocadorMunSerInstance.id}">${fieldValue(bean: alocadorMunSerInstance, field: "id")}</g:link></td> -->

							<td>
								${fieldValue(bean: alocadorMunSerInstance, field: "municipio")}
							</td>

							<td>
								${fieldValue(bean: alocadorMunSerInstance, field: "servico")}
							</td>

							<td>
								${fieldValue(bean: alocadorMunSerInstance, field: "familias")}
							</td>

							<td>
								${fieldValue(bean: alocadorMunSerInstance, field: "responsavel")}
							</td>

							<td>
								${fieldValue(bean: alocadorMunSerInstance, field: "telefone")}
							</td>

						</tr>
					</g:each>
				</tbody>
			</table>
		</div>
		<div class="paginateButtons">
			<g:paginate total="${alocadorMunSerInstanceTotal}" />
		</div>
	</div>
</body>
</html>
